package net.azure.app.view;

import javax.swing.*;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: Venkatraman Kandaswamy : kvenkatraman@gmail.com
 * Date: 12-Jun-2008
 * Time: 07:09:01
 */
public class ViewFactory {
    public static AzureView getView(Component component){
        if("Grid".equals(component.getName()))
            return new GridView();
        if("Story".equals(component.getName()))
            return new StoryView();
        return new NullView();
    }
}
